import request from "@/router/axios";

export const getList = (current, size, params) => {
  return request({
    url: "/api/hg-quality/costadjustpro/page",
    method: "get",
    params: {
      ...params,
      current,
      size
    }
  });
};

export const submit = (data, type) => {
  return request({
    url: `/api/hg-quality/costadjustpro/${type}`,
    method: "post",
    data: data
  });
};

export const remove = ids => {
  return request({
    url: `/api/hg-quality/costadjustpro/remove`,
    method: "post",
    params: {
      ids
    }
  });
};
